<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsBookreviewlikesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('bookreviewlikes', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->bigInteger('review_id')->comment('关联书评id');
			$table->bigInteger('uid')->comment('关联用户id');
			$table->integer('likes_time')->comment('点赞时间');
			$table->tinyInteger('status')->nullable()->default(0)->comment('点赞状态0为正常1为取消点赞');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('bookreviewlikes');
	}

}
